function mymat = insertLeftCol(mat, col)
    [m n] = size(mat);
    [mc nc] = size(col);
    if (m < mc)
        mat = [mat; zeros(mc - m, n)];
    elseif (m > mc)
        col = [col; zeros(m - mc, nc)];
    end
    mymat = [mat col];
end